

    <!DOCTYPE html>
    <html>

    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta name="renderer" content="webkit">

        <title> - 主页</title>

        <meta name="keywords" content="">
        <meta name="description" content="">

        <!--[if lt IE 9]>
        <meta http-equiv="refresh" content="0;uimodel/page/ie.html"/>
        <![endif]-->

        <link rel="shortcut icon" href="favicon.ico">
        <link href="../css/bootstrap.min-lumen.css" rel="stylesheet">
        <link href="../css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
        <link href="../css/animate.css" rel="stylesheet">
        <link href="../css/style.css?v=4.1.0" rel="stylesheet">
        <link href="../css/plugins/progressbar/mprogress.css" rel="stylesheet"/>
        <link href="../css/plugins/progressbar/style.css" rel="stylesheet"/>
    </head>

    <body class="fixed-sidebar full-height-layout gray-bg" style="overflow:hidden">
    <div id="wrapper">
        <!--左侧导航开始-->
        <nav class="navbar-default navbar-static-side" roleEntity="navigation">
            <div class="nav-close"><i class="fa fa-times-circle"></i>
            </div>
            <div class="sidebar-collapse">
                <ul class="nav" id="side-menu">
                    <li class="nav-header">
                        <div class="dropdown profile-element">
                            <a data-toggle="dropdown" class="dropdown-toggle" href="#">
									<span class="clear">
										<span class="block m-t-xs" style="font-size:20px;">
											<i class="fa fa-area-chart"></i>
											<strong class="font-bold">crmsys</strong>
										</span>
									</span>
                            </a>
                        </div>
                        <div class="logo-element">crmsys
                        </div>
                    </li>
                    <li>
                        <a class="J_menuItem" href="welcome.html">
                            <i class="fa fa-home"></i>
                            <span class="nav-label">欢迎页</span>
                        </a>
                    </li>
                        <li><!--bar-chart-o-->
                            <a href="#">
                                <i class="fa fa-space-shuttle"></i>
                                <span class="nav-label">系统管理</span>
                                <span class="fa arrow"></span>
                            </a>
                            <ul class="nav nav-second-level">
                                <li>
                                    <a class="J_menuItem" href="user/list.html" v-if="menuId.includes(1)">用户管理</a>
                                </li>
                                <li>
                                    <a class="J_menuItem" href="role/list.html"  v-if="menuId.includes(2)" >角色管理</a>
                                </li>
                                <li>
                                    <a class="J_menuItem" href="menu/list.html" v-if="menuId.includes(3)">菜单管理</a>
                                </li>
                                <li>
                                    <a class="J_menuItem" href="operation/list.html"  v-if="menuId.includes(4)">操作日志</a>
                                </li>
                            </ul>
                        </li>
                       <li>
                        <a href="#">
                            <i class="fa fa fa-book"></i>
                            <span class="nav-label">积云管理</span>
                            <span class="fa arrow"></span>
                        </a>
                        <ul class="nav nav-second-level">
                            <li v-if="menuId.includes(5)">
                                <a class="J_menuItem" href="teacher/list.html">教师管理</a>
                            </li>
                            <li v-if="menuId.includes(6)">
                                <a class="J_menuItem" href="student/list.html">学生管理</a>
                            </li>
                            <li v-if="menuId.includes(7)">
                                <a class="J_menuItem" href="teacher/count.html">教师统计</a>
                            </li>
                            <li v-if="menuId.includes(8)">
                                <a class="J_menuItem" href="student/count.html">学生统计</a>
                            </li>
                            <li v-if="menuId.includes(9)">
                                <a class="J_menuItem" href="teacher/test.html">测试</a>
                            </li>
                        </ul>
                    </li>

                    <!--想看各种组件用法可以放开注释查看-->
                </ul>

            </div>
        </nav>
        <nav class="navbar navbar-static-top" roleEntity="navigation" style="margin-bottom: 0">
            <div class="navbar-header"><a class="navbar-minimalize minimalize-styl-2 btn btn-info " href="#"><i class="fa fa-bars"></i>
            </a>
                <!-- <form roleEntity="search" class="navbar-form-custom" method="post" action="search_results.html">
                    <div class="form-group">
                        <input type="text" placeholder="请输入您需要查找的内容 …" class="form-control" name="top-search" id="top-search">
                    </div>
                </form> -->
            </div>
            <ul class="nav navbar-top-links navbar-right">
                <!-- <li class="dropdown">
                    <a class="dropdown-toggle count-info" data-toggle="dropdown" href="#">
                        <i class="fa fa-envelope"></i> <span class="label label-warning">16</span>
                    </a>
                    <ul class="dropdown-menu dropdown-messages">
                        <li class="m-t-xs">
                            <div class="dropdown-messages-box">
                                <a href="profile.html" class="pull-left">
                                    <img alt="image" class="img-circle" src="../img/a7.jpg">
                                </a>
                                <div class="media-body">
                                    <small class="pull-right">46小时前</small>
                                    <strong>小四</strong> test
                                    <br>
                                    <small class="text-muted">3天前 2014.11.8</small>
                                </div>
                            </div>
                        </li>
                        <li class="divider"></li>
                        <li>
                            <div class="dropdown-messages-box">
                                <a href="profile.html" class="pull-left">
                                    <img alt="image" class="img-circle" src="../img/a4.jpg">
                                </a>
                                <div class="media-body ">
                                    <small class="pull-right text-navy">25小时前</small>
                                    <strong>二愣子</strong> 呵呵
                                    <br>
                                    <small class="text-muted">昨天</small>
                                </div>
                            </div>
                        </li>
                        <li class="divider"></li>
                        <li>
                            <div class="text-center link-block">
                                <a class="J_menuItem" href="mailbox.html">
                                    <i class="fa fa-envelope"></i> <strong> 查看所有消息</strong>
                                </a>
                            </div>
                        </li>
                    </ul>
                </li> -->
                <li class="dropdown">
                    <a class="dropdown-toggle count-info" data-toggle="dropdown" href="#">
                        <i class="fa fa-user"></i> <span class="label label-primary"></span>
                    </a>
                    <ul class="dropdown-menu dropdown-alerts">
                        <!-- <li>
                            <a href="mailbox.html">
                                <div>
                                    <i class="fa fa-envelope fa-fw"></i> 您有16条未读消息
                                    <span class="pull-right text-muted small">4分钟前</span>
                                </div>
                            </a>
                        </li>
                        <li class="divider"></li>
                        <li>
                            <a href="profile.html">
                                <div>
                                    <i class="fa fa-qq fa-fw"></i> 3条新回复
                                    <span class="pull-right text-muted small">12分钟钱</span>
                                </div>
                            </a>
                        </li>
                        <li class="divider"></li> -->
                        <li>
                            <a href="profile.html">
                                <div>
                                    <i class="fa fa-qq fa-fw"></i> {{userName}}
                                    <!--  <span class="pull-right text-muted small">12分钟钱</span>-->
                                </div>
                            </a>
                        </li>
                        <li>
                            <div class="text-center link-block">
                                    <a class="J_menuItem" @click='logOut()'>

                                        <strong>退出登录 </strong>
                                        <i class="fa fa-angle-right"></i>
                                    </a>
                            </div>
                            <div class="text-center link-block">
                                    <a class="J_menuItem" @click='Reset()'>

                                        <strong>初始化密码 </strong>
                                        <i class="fa fa-angle-right"></i>
                                    </a>
                            </div>
                        </li>
                    </ul>
                </li>
            </ul>
        </nav>
        <!--左侧导航结束-->
        <!--右侧部分开始-->
        <div id="page-wrapper" class="gray-bg dashbard-1">
            <div class="row J_mainContent" id="content-main">
                <iframe id="J_iframe" width="100%" height="100%" src="welcome.html" frameborder="0" seamless></iframe>
            </div>
        </div>
        <!--右侧部分结束-->
    </div>

    <script src="../js/jquery.min.js?v=2.1.4"></script>
    <!--<script src="../js/vue.js"></script>-->
    <script src="../js/bootstrap.min.js?v=3.3.6"></script>
    <script src="../js/plugins/layer/layer.min.js"></script>
    <script src="../js/config/config.js"></script>
    <script src="../js/util/ajaxFactory.js"></script>
    <script src="../js/plugins/progressbar/mprogress.js"></script>
    <script src="../js/plugins/progressbar/init-mprogress.js"></script>
    <script src="../js/vue/vue.min.js"></script>
    <script src="../js/plugins/metisMenu/jquery.metisMenu.js"></script>
    <script src="../js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
    <script src="../js/plugins/layer/layer.min.js"></script>
    <script src="../js/hAdmin.js?v=4.1.0"></script>
    <script type="text/javascript" src="../js/index.js"></script>
    <script src="../js/plugins/pace/pace.min.js"></script>

    <script>

        var showVue = new Vue({
            el: "#wrapper",
            data:{
                menuId:[],
                userName:'',
                password:'',
                id:''
            },
            created(){
                this.convert();
            },
            methods:{
                convert: function () {

                    $z.ajaxPost({
                        url: basePath + '/tbUser/getCurrentUser',
                        success: function (data) {
                            $z.dealCommonResult(data, function () {
                                // alert(data.data.userName)
                                showVue.userName = data.data.userName;
                                showVue.id=data.data.id;
                                // alert(queryVue.userName)
                                showVue.menuId=data.data.menuId;
                            })
                        }
                    })
                },
                logOut: function () {
                    $z.ajaxPost({
                        url: basePath + "/login/doLogOut",
                        success: function (data) {
                            $z.dealCommonResult(data, function () {
                                window.location.href = 'login.html';
                            });


                        }
                    });
                },
                Reset: function () {
                    $z.ajaxPost({
                        url: basePath + "/login/Reset?id="+showVue.id,
                        success: function (data) {
                            $z.dealCommonResult(data, function () {
                                //showVue.password=data.data;
                                alert("重置成功")
                            });


                        }
                    });
                }
            }
        });
    </script>
    </body>

    </html>
